org.neo4j.helpers.collection
Class CatchingIteratorWrapper<T,U>

java.lang.Object
  extended by org.neo4j.helpers.collection.PrefetchingIterator<T>
      extended by org.neo4j.helpers.collection.CatchingIteratorWrapper<T,U>
All Implemented Interfaces:
Iterator<T>

public abstract class CatchingIteratorWrapper<T,U>
extends PrefetchingIterator<T>


Constructor Summary
CatchingIteratorWrapper(Iterator<U> source)
           
 
Method Summary
protected  boolean exceptionOk(Throwable t)
           
protected  T fetchNextOrNull()
           
protected abstract  T underlyingObjectToObject(U object)
           
 
Methods inherited from class org.neo4j.helpers.collection.PrefetchingIterator
getPrefetchedNextOrNull, hasNext, next, remove, setPrefetchedNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatchingIteratorWrapper

public CatchingIteratorWrapper(Iterator<U> source)
Method Detail

fetchNextOrNull

protected T fetchNextOrNull()
Specified by:
fetchNextOrNull in class PrefetchingIterator<T>

exceptionOk

protected boolean exceptionOk(Throwable t)

underlyingObjectToObject

protected abstract T underlyingObjectToObject(U object)


Copyright © 2010 Neo4j. All Rights Reserved.